import request from '@/utils/request'

// 查询服务市场列表
export function listSysServiceMarket(query) {
  return request({
    url: '/system/sysServiceMarket/list',
    method: 'get',
    params: query
  })
}

// 查询服务市场详细
export function getSysServiceMarket(id) {
  return request({
    url: '/system/sysServiceMarket/' + id,
    method: 'get'
  })
}

// 新增服务市场
export function addSysServiceMarket(data) {
  return request({
    url: '/system/sysServiceMarket',
    method: 'post',
    data: data
  })
}

// 修改服务市场
export function updateSysServiceMarket(data) {
  return request({
    url: '/system/sysServiceMarket',
    method: 'put',
    data: data
  })
}

// 删除服务市场
export function delSysServiceMarket(id) {
  return request({
    url: '/system/sysServiceMarket/' + id,
    method: 'delete'
  })
}
